package com.wise.summer.v1.cms.content.resourcegroup;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.resourcegroup.ResourceGroupType;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.*;

@Setter
@Getter
@Publish
@ApiInfo("根据id更新资源分组id")
public class UpdateResourceGroupById extends BasicSummer<Boolean> {
	@NotBlank(msg = Err_100100000007)
	@ApiInfo("资源分组id")
	private String id;

	@NotBlank(msg = Err_100100000007)
	@ApiInfo("组名")
	private String groupName;

	@ApiInfo("组别")
	@NotBlank(msg = Err_100100000010)
	@AssertEnum(enumClass = ResourceGroupType.class, msg = Err_100100000011)
	private String groupType;

	@ApiInfo("是否显示在下载中心")
	private Integer center;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

}
